import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import '@/permission' // permission control


import 'normalize.css/normalize.css'
import ElementUI from 'element-ui' // 2.1 引入结构
import 'element-ui/lib/theme-chalk/index.css'; // 2.2引入样式

Vue.use(ElementUI)

// 导入过滤器
import * as filterObj from '@/filters/index.js'
// 注册过滤器
Object.keys(filterObj).forEach(item => {
  Vue.filter(item, filterObj[item])
})

Vue.config.productionTip = false;

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
